package com.yatush.testmodule.web;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import springapp.domain.Product;

import com.yatush.backstage.web.Bean;

public class ToDoBean extends Bean {

	/** Logger for this class and subclasses */
    protected final Log logger = LogFactory.getLog(getClass());

    private int percentage;
    private List<Product> products;

    public void setPercentage(int i) {
        percentage = i;
        logger.info("Percentage set to " + i);
    }

    public int getPercentage() {
        return percentage;
    }

	public List<Product> getProducts() {
		System.out.println(products+" >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
		return products;
	}

	public void setProducts(List<Product> products) {
		System.out.println(products+" >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
		this.products = products;
	}


	
}
